const {
	http
} = uni.$u;
export const config = {
	// baseUrl: 'https://cloud.xailife.com/'  //生产
	// baseUrl: 'https://ai-oil-dev02.xailife.com:30443/'
	baseUrl: 'http://10.34.100.127:32189'
	// baseUrl: 'https://ai-oil-test01.xailife.com:30443/'
}
// const baseUrl = 'rpt';  //生产
const baseUrl = 'rpt-dev2';
// const baseUrl = 'rpt-test1';
// *****登录*****
// token 
export const getToken = (req) => {
	return http.post('ai-oil-user/consumer/wx/login', req);
}
// token
export const login = (req) => {
	return http.post('ai-oil-user/consumer/wx/oilShareWxLogin', req);
}
// *****站点*****
export const getSiteList = () => {
	return http.post('ai-oil-user/userStation/getUserStation');
}
export const getSiteByCode = (req) => {
	return http.post(baseUrl + '/station/station/getByCode', req);
}
// *****订单*****
export const getOrderList = (req) => {
	return http.post(baseUrl + '/reportOrderStation/getSumByStation', req);
}
// 全部订单
export const getAllOrderList = (req) => {
	return http.post(baseUrl + '/qrOrderInfo/getOrderListByPage', req);
}
export const orderDetail = (req) => {
	return http.post(baseUrl + '/qrOrderInfo/detail', req);
}
// *****首页*****
// 订单数据
export const getOrderMsgByTime = (req) => {
	return http.post(baseUrl + '/reportOrderStation/getByTime', req);
}
export const getOrderMsgByDay = (req) => {
	return http.post(baseUrl + '/reportOrderStation/getByDay', req);
}
// 用户数据
export const getUserMsgByTime = (req) => {
	return http.post(baseUrl + '/reportPromoterStation/getStationByTime', req);
}
export const getUserMsgByDay = (req) => {
	return http.post(baseUrl + '/reportPromoterStation/getStationByDay', req);
}
// 小程序数据
export const getAppMsgByTime = (req) => {
	return http.post(baseUrl + '/report_user_platform/getByTime', req);
}
export const getAppMsgByDay = (req) => {
	return http.post(baseUrl + '/report_user_platform/getByDay', req);
}
//财务-支付
export const getSumByStationNo = (req) => {
	return http.post(baseUrl + '/reportPayRemittance/getSumByStationNo', req);
}
export const getCashDetail = (req) => {
	return http.post(baseUrl + '/reportPayRemittance/getDetail', req);
}
export const getSumByStationNo2 = (req) => {
	return http.post(baseUrl + '/reportHdRemittance/getSumByStationNo', req);
}
export const getCashDetail2 = (req) => {
	return http.post(baseUrl + '/reportHdRemittance/getDetail', req);
}
// 用户增长数据
export const getPrivateStationSum = (req) => {
	return http.post(baseUrl + '/reportPromoterStation/getPrivateStationSum', req);
}

